package sar

class TeachingSession {
	static belongsTo=[programCourse:ProgramCourse,staff:Staff,tutor:Tutor]
	String name
	String content
	String type
	Date time
	static constraints = {
		name blank:false, nullable:false
		content blank:false, nullable:false
		time blank:false,nullable:false
		type inList:[
			'Lecture',
			'Tutorial Session',
			'Lab Session'
		]
	}
	@Override
	public String toString() {
		return name+"-"+this.type
	}
}
